package ca.venasse.pinventory.inventory.event;

import org.axonframework.domain.DomainEvent;

import ca.venasse.pinventory.inventory.common.CategoryIdentifier;
import ca.venasse.pinventory.inventory.common.PartIdentifier;
import ca.venasse.pinventory.inventory.common.PartName;

public class PartAdded extends DomainEvent {

	private static final long serialVersionUID = 1L;

	private final CategoryIdentifier categoryIdentifier;
	private final PartName name;
	private final PartIdentifier partIdentifier;

	public PartAdded(CategoryIdentifier categoryIdentifier, PartIdentifier partIdentifier,
			PartName name) {
		this.categoryIdentifier = categoryIdentifier;
		this.partIdentifier = partIdentifier;
		this.name = name;
	}

	public CategoryIdentifier getCategoryIdentifier() {
		return this.categoryIdentifier;
	}

	public PartName getName() {
		return this.name;
	}

	public PartIdentifier getPartIdentifier() {
		return this.partIdentifier;
	}

}
